core: Make write_object() a bit more efficient
authorColin Walters <walters@verbum.org>
Sun, 8 Sep 2013 01:49:56 +0000 (21:49 -0400)
committerColin Walters <walters@verbum.org>
Sun, 8 Sep 2013 18:40:52 +0000 (14:40 -0400)
commit27c3e7884ee124e13fceff1f39300b07b61e88ca
tree6d83bd0ff48ad62e642a8573e234948f046fd0ed
parent9846fb27fd008ac08dcc4b304fcd314eb75bba09
core: Make write_object() a bit more efficient

Do as many operations as we can using the original file descriptor
while we have it open, rather than writing, closing, then reopening.

This necessitated very explicitly special casing symbolic links,
mainly due to the lack of lsetxattrat().

https://bugzilla.gnome.org/show_bug.cgi?id=707733
src/libostree/ostree-repo-commit.c